<?php namespace App\Http\Controllers;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use Illuminate\Http\Request;
use App\Category;

class PagesController extends Controller {

	public function index() {

        $categories = Category::all();
        return view('pages.index', compact('categories'));
    }

    public function productFinder($slug) {
        $categories = Category::all();
        $products = Category::whereSlug($slug)->with('products')->get()->first();
        return view('pages.product-finder', compact('categories', 'products'));
    }

    public function fragranceClub() {
        return view('pages.fragrance-club');
    }

    public function about() {
        return view('pages.about');
    }

    public function contact() {
        return view('pages.contact');
    }

    public function faq() {
        return view('pages.faq');
    }

}
